package cn.cutie.clotconfig.client.repository;

import cn.cutie.clotconfig.client.config.ConfigMeta;

import java.util.Map;

/**
 * @Description:
 * @Author: Cutie
 * @CreateDate: 2024/5/11 00:23
 * @Version: 0.0.1
 */
public interface ClotRepositoryChangeListener {
    void onChange(ChangeEvent changeEvent);

    record ChangeEvent(ConfigMeta meta, Map<String, String> config) {}

//    @Data
//    @AllArgsConstructor
//    class ChangeEvent{
//        ConfigMeta meta;
//        Map<String, String> config;
//    }
}
